module.exports = function(grunt){

	grunt.initConfig({

		pkg: grunt.file.readJSON("package.json"),

		assemble: {
			options: {
				assets: "dist/assets",
				layout: "layout.hbs",
				layoutdir: "src/templates/layout",
				partials: ["src/templates/pages/*.hbs", "src/templates/parts/*.hbs"]
			},
			demo: {
				options:{
					data: ["src/data/*{json,yml}"]	
				},
				files:[
					{
						expand: true,
						cwd: "./src/templates/pages",
						src: ["./**/*.hbs"],
						dest: "dist"
					}
				]
			}
		},

		copy:{
			test:{
				files: [
		          { expand: true, cwd: './css', src: ['./**/*.*'], dest: 'dist/assets/css' }
		        ]	
			}
		}	
	});	

	grunt.loadNpmTasks("assemble");
	grunt.loadNpmTasks("grunt-contrib-copy");

	grunt.registerTask("html",["assemble"]);
	grunt.registerTask("default",["copy"]);

};